<?php defined('LMO') or die('Can\'t access !'); ?>
<h2 class="title">Account list</h2>
<form action="" method="POST">
<table border="0" width="100%">
    <tr>
        <td width="35%" class="lable-list">Server name</td>
        <td width="35%" class="lable-list">IP</td>
        <td width="30%" class="lable-list"></td>
    </tr>
    <tr>
        <td colspan="3">
            <div class="line"></div>
        </td>
    </tr>
    <?php 
    if(!empty($data)):
    foreach($data as $account):
    ?>
    <tr class="list">
        <td><?php echo $account['name']; ?></td>
        <td><?php echo $account['ip']; ?></td>
        <td><a href="<?php echo BASE_URL.BS.'index.php?c=account&m=edit&ip='.$account['ip']; ?>">[Edit]</a> <a href="<?php echo BASE_URL.BS.'index.php?c=account&m=delete&ip='.$account['ip']; ?>">[Delete]</a></td>
    </tr>
    <tr>
        <td colspan="3">
            <div class="line-dot"></div>
        </td>
    </tr>
    <?php 
    endforeach;
    else:
    ?>
    <tr>
        <td colspan="3">
            <center>Empty !</center>
        </td>
    </tr>
    <?php
    endif;
    ?>
</table>
</form>